package com.toocms.jinjuhang.ui.mine.my_favorite

import com.toocms.jinjuhang.R
import com.toocms.jinjuhang.BR
import com.toocms.jinjuhang.databinding.FgtMyFavoriteBinding
import com.toocms.jinjuhang.ui.base.BaseFgt

class MyFavoriteFgt : BaseFgt<FgtMyFavoriteBinding, MyFavoriteModel>() {
    override fun onFragmentCreated() {
        topBar.setTitle(R.string.str_my_favorite)
    }

    override fun getLayoutResId() = R.layout.fgt_my_favorite

    override fun getVariableId() = BR.myFavoriteModel

    override fun viewObserver() {
        viewModel.stopRefreshOrLoadSingleLiveEvent.observe(this) {
            binding.refreshSrl.finishRefresh()
            binding.refreshSrl.finishLoadMore()
        }
    }
}